@charset "utf-8";

/* 防止用户自定义背景颜色对网页的影响，添加让用户可以自定义字体 */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* IE6对positon:fixed的单独处理修正IE6滚动抖动的bug */
*html,
*html body {
  /*修正IE6滚动抖动的bug*/
  background-attachment: fixed;
  /*根据自己实际，非必需*/
}

/* 内外边距通常让各个浏览器样式的表现位置不同 */
body,
div,
dl,
dt,
dd,
ul,
li,
pre,
form,
fieldset,
select,
input,
textarea,
button,
p,
figure,
blockquote,
th,
td,
img,
iframe,
a,
i {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
}

/* 要注意表单元素并不继承父级 font 的问题 */
body,
button,
input,
select,
textarea {
  font: 12px/1.5 "微软雅黑", "Microsoft YaHei", "\5b8b\4f53", "Tahoma", "Arial";
  color: #333;
  /* outline: none; */
}

body,
textarea,
input,
button,
select,
keygen,
legend {
  font: 12px/1.14 arial, "Microsoft YaHei";
  color: #333;
  outline: 0;
}

/**
 * Hide the overflow in IE.
 */

svg:not(:root) {
  overflow: hidden;
}
/* 去掉各Table cell 的边距并让其边重合 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* IE bug fixed: th 不继承 text-align*/
th {
  text-align: inherit;
}

/* 对齐是排版最重要的因素, 别让什么都居中 */
caption,
th {
  text-align: left;
}

/* 去除默认边框 */
fieldset,
img {
  border: none;
  outline: none;
  -moz-outline: none;
  display: block;
}

/* ie6 7 8(q) bug 显示为行内表现 */
iframe {
  display: block;
}

/* 去掉列表前的标识, li 会继承 */
ol,
ul,
li {
  list-style: none;
}

/* 来自yahoo, 让标题都自定义, 适应多个系统应用 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

/* 让链接默认不显示下划线，在hover状态下显示下划线 */
a {
  display: block;
  color: #333;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}

/* a{-webkit-transition:all 0.2s linear;-moz-transition:all 0.2s linear;-ms-transition:all 0.2s linear;-o-transition:all 0.2s linear;transition: all 0.2s linear;} */
/* i标签(字体图标)*/
/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* HTML5 媒体文件跟 img 保持一致 */
audio,
canvas,
video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

video {
  border: 1px solid transparent;
}

address,
caption,
cite,
code,
dfn,
em,
th,
i {
  font-style: normal;
  font-weight: normal;
}

input[type=submit],
input[type=button],
input[type=reset] {
  cursor: pointer;
}

input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="text"],
select,
textarea {
  -webkit-appearance: none; /* 在ios中 input会带有默认的box-shadow */
  font-family: "Microsoft Yahei", "Arial", Helvetica, sans-serif;
}


/*解决盒模型问题css3属性也可用来统一FORM元素风格*/
* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* 让元素被点击的时候不要有背景颜色 */
* {
  -webkit-tap-highlight-color: transparent;
}

/* flex布局 */
.flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.flex-v {
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.flex1 {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

/* align-items属性*/
.items-center {
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.items-end {
  -webkit-box-align: flex-end;
  -webkit-align-items: flex-end;
  -ms-flex-align: flex-end;
  align-items: flex-end;
}

.items-baseline {
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
}

/* justify-content 属性 */
.justify-center {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.justify-end {
  -webkit-box-pack: flex-end;
  -webkit-justify-content: flex-end;
  -ms-flex-pack: flex-end;
  justify-content: flex-end;
}

.justify-between {
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.justify-around {
  -webkit-box-pack: justify;
  -webkit-justify-content: space-around;
  -ms-flex-pack: justify;
  justify-content: space-around;
}

/* flex-direction属性 (项目排列的方向)*/
.flex-column-reverse {
  -webkit-box-direction: reverse;
  -ms-flex-direction: column-reverse;
  flex-direction: column-reverse;
}

.flex-row-reverse {
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

/* flex-wrap属性 */
/* 换行 */
.flex-wrap {
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -o-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* 换行，第一行在下方 */
.flex-wrap-reverse {
  -webkit-flex-wrap: wrap-reverse;
  -moz-flex-wrap: wrap-reverse;
  -ms-flex-wrap: wrap-reverse;
  -o-flex-wrap: wrap-reverse;
  flex-wrap: wrap-reverse;
}

/* transform 兼容*/
.transform {
  transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

/* 浮动与清除浮动 */
.clearfix:before,
.clearfix:after {
  content: " ";
  display: block;
  visibility: hidden;
  height: 0;
  line-height: 0;
  font-size: 0;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

.clear {
  clear: both;
  height: 0;
  overflow: hidden;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.pr {
  position: relative;
}

.pa {
  position: absolute;
}

/*
 文字与背景渐变
*/

.background_linear_gradient {
  background: -webkit-linear-gradient(left, #f13147, #fc6950);
  /* Safari 5.1 - 6.0 */
  background: -o-linear-gradient(right, #f13147, #fc6950);
  /* Opera 11.1 - 12.0 */
  background: -moz-linear-gradient(right, #f13147, #fc6950);
  /* Firefox 3.6 - 15 */
  background: linear-gradient(to right, #f13147, #fc6950);
}

// .text_linear_gradient {
//   -webkit-background-clip: text;
//   -webkit-text-fill-color: transparent;
//   background: linear-gradient(to right, #fd2a62, #fd8571);
// }

/* 遮盖层 */
.base-layer {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
}

/* 文字溢出隐藏 */
.omit {
  white-space: nowrap;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  overflow: hidden;
  display: block;
}

/*
 显示省略号
*/
.omit_space2 {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 三角形 */
.triangle_box {
  border-color: #000 transparent transparent transparent;
  width: 0;
  height: 0;
  border-width: 8px;
  border-style: solid;
}

/* 版心居中 */
.container {
  margin: 0 auto;
}

/*媒体查询*/
/* 大屏幕 >1200 */
@media screen and (min-width: 1200px) {
  .container {
    width: 1200px;
  }
}

/*中等屏幕 >992px && <1200*/
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .container {
    width: 980px;
  }
}

/* pad > 768px&& <992px   */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 768px;
  }
}

/*手机 <768px*/
@media screen and (max-width: 767px) {
  .container {
    width: 100%;
  }
}

/* 横/坚屏 */
/* orientation: portrait | landscape(横屏) */

/* @media screen and (orientation: landscape) {
    body {
        background-color: red;
    }
}

@media screen and (orientation: portrait) {
    body {
        background-color: blue;
    }
} */

/* device-width / device-height 两个值是从 chrome浏览器的移动模拟器中拿到的值
				width html的宽度
				device-width 设备屏幕的宽度
		*/

/* @media screen and (device-width: 320px) and (device-height: 568px) {
    body {
        background-color: orangered;
    }
} */

/*
iPhoneX的适配---媒体查询
@media only screen and (width: 375px) and (height: 690px){
    body {
        background: blue;
        padding-top: constant(safe-area-inset-top);   //为导航栏+状态栏的高度 88px            
        padding-left: constant(safe-area-inset-left);   //如果未竖屏时为0                
        padding-right: constant(safe-area-inset-right); //如果未竖屏时为0                
        padding-bottom: constant(safe-area-inset-bottom);//为底下圆弧的高度 34px    
        }
   }
*/